<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="javascript:void(0);">库存管理</a>
    <a href="javascript:void(0);">入库记录</a>
</div>
<form name="form" id="form" action="{url('houselogs/up')}" method="post">
<div class="table-search fn-clear">
    <select class="select" name="place_id">
        <option value=" ">选择库位</option>
    {loop $place_list $vo} 
        <option value="{$vo['id']}" {if $place_id == $vo['id']} selected="selected"{/if}>{$vo['name']}</option>
    {/loop}
    </select>
    <select class="select" name="manufacturer_id">
        <option value="">厂商</option>
    {loop $manufacturer_lists $vo} 
        <option value="{$vo['id']}" {if $manufacturer_id == $vo['id']} selected="selected"{/if}>{$vo['name']}</option>
    {/loop}
    </select>
      <select class="select" name="producttype_id">
          <option value="">产品名称</option>
      {loop $producttype_lists $vo} 
          <option value="{$vo['id']}" {if $producttype_id == $vo['id']} selected="selected"{/if}>{$vo['name']}</option>
      {/loop}
      </select>
    <span class="fn-tar">物料代码:</span>
    <span class="sinput"><input class="input w100" type="text" name="code" value="{$code}" /></span>
    <span class="fn-tar">物料名称:</span>
    <span class="sinput"><input class="input w100" type="text" name="name" value="{$name}" /></span>
    <span class="fn-tar">入库时间起:</span>
    <span class="sinput"><input class="input w100 ui-time" type="text" name="start_time" value="{$start_time}"  ignore="ignore" /></span>
    <span class="fn-tar">入库时间止:</span>
    <span class="sinput"><input class="input w100 ui-time" type="text" name="end_time" value="{$end_time}"  ignore="ignore" /></span>
    <input type="submit" value="开始查找" class="button button-green submit" />
</div>
</form>
<div class="table-head fn-clear"> 
    <div class="fn-r">
        <a href="{url('houselogs/upexcel',$search)}" class="button button-violet ">
            <i class="iconfont icon-xiazai"></i> 导出入库记录
        </a>
    </div>
</div>
<div class="m10">
<table class="table table-border">
<thead>
    <tr>
        <th class="fn-tac w60">#</th>
        <th class="w200">库位</th>
        <th class="w200">产品名称</th>
        <th class="w120">物料代码</th>
        <th class="w200">物料名称</th>
        <th>规格型号</th>
        <th>IMEI</th>
        <th class="w80 fn-tac">入库数量</th>
        <th class="fn-tac w120">入库人员</th>
        <th class="fn-tac w120">入库时间</th>
        <th class="fn-tac w80">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td>{$vo['place_name']}</td>
    <td>{$vo['product']}</td>
    <td>{$vo['code']}</td>
    <td>{$vo['name']}</td>
    <td>{$vo['parameter']}</td>
    <td>{$vo['imei']}</td>
    <td class="fn-tac"><span class="badge bg-blue">{$vo['logs_amount']}</span></td>
    <td class="fn-tac">{$vo['admin_name']}</td>
    <td class="fn-tac">{date('Y-m-d',$vo['uptime'])}</td>
    <td class="fn-tac tip">
        <a href="javascript:void(0);" class="del" title="删除" url="{url('houselogs/del',array(id=>$vo['id'],act=>del))}">删除</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
  $('.del').click(function(){$(this).del();});
  $('.win').click(function(){$(this).win();});
  $('#form').forms({types:'post'});
})
</script>